<?php
define('HOST',$_SERVER['HTTP_HOST']); //host name
define('URL', substr($_SERVER['PHP_SELF'],1)); //file being requested in the browser
$url_name = explode('.',URL);
if(isset($url_name[0])) {
        define('URLNAME', $url_name[0]); //URL without the extension
}
if(isset($url_name[1])) {
        define('URLEXTENSION', $url_name[1]); // extension of the file being called
}
//define your root directory path and branch name (if any)
define('ROOT', dirname(__FILE__));
define('BRANCH', ''); // '/html' for http://etat.us
//define local database host, name, access username and password. The commented settings are for http://etat.us
define('DBHOST','localhost'); //etat.db.5820751.hostedresource.com
define('DBNAME', 'etat');
define('DBUSER', 'root'); //etat
define('DBPASS', ''); //remoteDB123
//define parser interval (in minutes)
define('INTERVAL', '30');
//define salt for password encryption
define('SALT', 'etat_salt');
//defind login cookie interval
define('COOKIE_TIME',60*60*24*7); //one week.
if(URL == 'config.php') header("Location: http://".HOST."/index.php?m=5");
?>